<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Construct a RecursiveTreeIterator</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="recursivetreeiterator.callhaschildren.html">RecursiveTreeIterator::callHasChildren</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="recursivetreeiterator.current.html">RecursiveTreeIterator::current</a></div>
 <div class="up"><a href="class.recursivetreeiterator.html">RecursiveTreeIterator</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="recursivetreeiterator.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RecursiveTreeIterator::__construct</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0)</p><p class="refpurpose"><span class="refname">RecursiveTreeIterator::__construct</span> &mdash; <span class="dc-title">Construct a RecursiveTreeIterator</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-recursivetreeiterator.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>RecursiveTreeIterator::__construct</strong></span>
    ( <span class="methodparam"><span class="type"><span class="type RecursiveIterator|IteratorAggregate">RecursiveIterator|IteratorAggregate</span></span> <code class="parameter">$it</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = RecursiveTreeIterator::BYPASS_KEY</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$cit_flags</code><span class="initializer"> = CachingIterator::CATCH_GET_CHILD</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = RecursiveIteratorIterator::SELF_FIRST</span></span>
  ]]] )</div>

  <p class="para rdfs-comment">
   Constructs a new <a href="class.recursivetreeiterator.html" class="classname">RecursiveTreeIterator</a> from the supplied recursive iterator.
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-recursivetreeiterator.construct-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">it</code></em></dt>

     <dd>

      <p class="para">
       The <a href="class.recursiveiterator.html" class="classname">RecursiveIterator</a> or <strong class="classname">IteratorAggregate</strong> to iterate over.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">flags</code></em></dt>

     <dd>

      <p class="para">
       Flags may be provided which will affect the behavior of some methods. 
       A list of the flags can found under <a href="class.recursivetreeiterator.html#recursivetreeiterator.constants" class="link">RecursiveTreeIterator predefined constants</a>.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">caching_it_flags</code></em></dt>

     <dd>

      <p class="para">
       Flags to affect the behavior of the <a href="class.recursivecachingiterator.html" class="classname">RecursiveCachingIterator</a> used internally. 
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">mode</code></em></dt>

     <dd>

      <p class="para">
       Flags to affect the behavior of the <a href="class.recursiveiteratoriterator.html" class="classname">RecursiveIteratorIterator</a> used internally. 
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-recursivetreeiterator.construct-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="recursivetreeiterator.callhaschildren.html">RecursiveTreeIterator::callHasChildren</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="recursivetreeiterator.current.html">RecursiveTreeIterator::current</a></div>
 <div class="up"><a href="class.recursivetreeiterator.html">RecursiveTreeIterator</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
